<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%=request.getContextPath() + "/css/bloques.css"%>"
	rel="stylesheet" type="text/css">
<title>Activar programas</title>
</head>

<script type="text/javascript">
	function fboton() {
		document.frmActivarPrograma.activar.disabled = false;
	}
</script>

<body>

	<P></P>
	<P></P>
	<P align="center"></P>
	<P align="center"></P>
	<P align="center"></P>
	<div align="center">
		<table
			style="width: 80%; border: 0; padding: 2px; border-spacing: 1px;">
			<tr>
				<td>
					<P align="center" class="titulosenblanco">ACTIVAR PROGRAMAS</P>
				</td>
			</tr>
		</table>
	</div>
	<P></P>
	<form name="frmActivarPrograma"
		action="<%=request.getContextPath()
					+ "/subprogramas/ActivarSubprogramas.do?ori=activar"%>">
		<div align="center">
			<table class="tablaGenericaWidth90">
				<tr>
					<td><logic:notPresent scope="request" name="programas">
							<DIV align="center"><%=request.getAttribute("msg")%></DIV>
						</logic:notPresent> <logic:present scope="request" name="programas">
							<display:table name="requestScope.programas" class="bordesTable"
								id="pro" cellpadding="3" cellspacing="1" style="width:100%"
								requestURI='<%=request.getContextPath()
							+ "/programas/ActivarProgramas.do"%>'>
								<display:column headerClass="headerTable" title="Programa"
									class="Numero" sortable="true">
									<bean:write name="pro" property="nombre" />
								</display:column>
								<bean:define id="Codigo" name="pro" property="code"></bean:define>
								<display:column headerClass="headerTable" title="Activar"
									class="Numero" sortable="false">
									<input type="radio" onclick="fboton()" name="Codigo"
										value="<%=Codigo%>">
								</display:column>
							</display:table>
						</logic:present></td>
				</tr>
			</table>
		</div>
		<P></P>
		<div align="center">
			<table class="tablaGenericaWidth60">
				<tr>
					<td width="33%"><P>&nbsp;</P></td>
					<td width="37%">
						<P align="center">
							<input type="hidden" name="ori" value="activar" />
							<logic:notPresent scope="request" name="programas">
								<input type="submit" name="activar" value="Activar"
									disabled="disabled" />
							</logic:notPresent>
							<logic:present scope="request" name="programas">
								<input type="submit" name="activar" value="Activar"
									disabled="disabled" />
							</logic:present>
						</P>
						<P align="center">
							<a href="javascript:window.history.back()"> <img
								src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>"
								border="0" />
							</a>
						</P>
					</td>
					<td width="30%"><P align="center"></P></td>
				</tr>
			</table>
		</div>
		<P></P>
	</form>
	<P align="center"></P>
</body>
</html>
